home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
dev
/
c
/
vbccwos.lha
/
vbcc
/
doc
/
errors.doc
< prev
next >
Wrap
Text File
|
1999-03-07
|
31KB
|
1,210 lines
0: "declaration expected" (Fatal, Error, ANSI-violation)
Something is pretty wrong with the source.
1: "only one input file allowed" (Fatal)
vbcc accepts only a single filename to compile. You can use a
frontend to compile multiple files or perhaps you mistyped an
option.
2: "Flag <%s> specified more than once" ()
You specified a command line option that should be specified only
once more than once. Maybe you have this option in your config-file
and used it in the command line, too?
The first occurrence will override the latter ones.
3: "Flag <%s> needs string" (Fatal)
This option hast to be specified with a string parameter, e.g.
-flag=foobar
4: "Flag <%s> needs value" (Fatal)
This option hast to be specified with an integer parameter, e.g.
-flag=1234
5: "Unknown Flag <%s>" (Fatal)
This option is not recognized by vbcc. Perhaps you mistyped it, used
the wrong case or specified an option of the frontend to vbcc?
6: "No input file" (Fatal)
You did not specify an input file. Your source file should not start
with a '-' and if you use a frontend make sure it has the proper
suffix.
7: "Could not open <%s> for input" (Fatal)
A file could not be opened.
8: "need a struct or union to get a member" (Error, ANSI-violation)
The source contains something like a.b where a is not a structure
or union.
9: "too many (%d) nested blocks" (Fatal, Error)
vbcc only allows a maximum number of nested blocks
(compund-statements). You can increase this number by changing
the line #define MAXN <something> in vbc.h and recompiling vbcc.
10: "left block 0" (Error, ANSI-violation)
This error should not occur.
11: "incomplete struct <%s>" (Error, ANSI-violation)
You tried to get a member of an incomplete structure/union.
You defined struct x y; somewhere without defining struct x{...}.
12: "out of memory" (Fatal, Error)
Guess what.
13: "redeclaration of struct <%s>" (Error, ANSI-violation)
You may not redeclare a struct/union in the same block.
14: "incomplete type (%s) in struct" (Error, ANSI-violation)
Every member in a struct/union declaration must be complete.
Perhaps you only wanted a pointer to that type and forgot the '*'?
15: "function (%s) in struct/union" (Error, ANSI-violation)
Functions cannot be members of structs/unions.
16: "redeclaration of struct/union member <%s>" (Error, ANSI-violation)
Two members of a struct/union have the same name.
17: "redeclaration of <%s>" (Error, ANSI-violation)
You used a name already in use in an enumeration.
18: "invalid constant expression" (Error, ANSI-violation)
??? Nowhere to find...
19: "array dimension must be constant integer" (Error, ANSI-violation)
The dimensions of an array must be constants (real constants,
const int x=100; int y[x]; is not allowed) and integers
(int y[100.0]; is not allowed either).
20: "no declarator and no identifier in prototype" (Error, ANSI-violation)
21: "invalid storage-class in prototype" (Error, ANSI-violation)
Function parameters may only be auto or register.
22: "void not the only function argument" (Error, ANSI-violation)
You tried to declare a function that has an argument of type void
as well as other arguments.
23: "<%s> no member of struct/union" (Error, ANSI-violation)
The struct/union does not contain a member called like that.
24: "increment/decrement is only allowed for aithmetic and pointer types" (Error, ANSI-violation)
25: "functions may not return arrays or functions" (Error, ANSI-violation)
26: "only pointers to functions can be called" (Error, ANSI-violation)
You tried to call something that did not decay into a pointer to
a function.
27: "redefinition of var <%s>" (Error, ANSI-violation)
28: "redeclaration of var <%s> with new storage-class" (Error, ANSI-violation)
29: "first operand of conditional-expression must be arithmetic or pointer type" (Error, ANSI-violation)
30: "multiple definitions of var <%s>" (Error, ANSI-violation)
There have been multiple definitions of a global variable with
initialization.
31: "operands of : do not match" (Error, ANSI-violation)
In an expression of the form a ? b : c
- a and b must have the same type or
- a and b both must have arithmetic types or
- one of them must be a pointer and the other must be void * or 0
32: "function definition in inner block" (Error, ANSI-violation)
C does not allow nested functions.
33: "redefinition of function <%s>" (Error, ANSI-violation)
Defining two functions with the same name in one translation-unit
is no good idea.
34: "invalid storage-class for function" (Error, ANSI-violation)
Functions must not have storage-classes register or auto.
35: "declaration-specifiers expected" (Error, ANSI-violation)
36: "declarator expected" (Error, ANSI-violation)
37: "<%s> is no parameter" (Error, ANSI-violation)
In an old-style function definition you tried to declare a name as
parameter which was not in the identifier-list.
38: "assignment of different structs/unions" (Error, ANSI-violation)
39: "invalid types for assignment" (Error, ANSI-violation)
In an assignment-context (this includes passing arguments to
prototyped functions) the source and target must be one of the
following types:
- both are arithmetic types
- both are the same struct/union
- one of them is a pointer to void and the other one is any pointer
- the target is any pointer and the source is an integral
constant-expression with the value 0
- both are pointer to the same type (here the target may have
additional const/volatile qualifiers - not recursively, however)
Any other combinations should be illegal.
40: "only 0 can be compared against pointer" (Warning, ANSI-violation)
You may not compare a pointer against any other constant but a
0 (null pointer).
41: "pointers do not point to the same type" (Warning, ANSI-violation)
You tried to compare or assign pointers that point to different
types. E.g. the types they point to may have different attributes.
42: "function initialized" (Error, ANSI-violation)
There was a '=' after a function declaration.
43: "initialization of incomplete struct" (Error, Fatal, ANSI-violation)
A structure is incomplete if the only its name, but not the
content is known. You cannot do much with such structures.
44: "initialization of incomplete union" (Error, Fatal, ANSI-violation)
A union is incomplete if the only its name, but not the
content is known. You cannot do much with such unions.
45: "empty initialization" (Error, ANSI-violation)
There was no valid expression after the '=' in a variable definition.
46: "initializer not a constant" (Error, ANSI-violation)
Static variables and compound types may only be initialized with
constants.
Variables with const qualifier are no valid constant-expressions
here.
Addresses of static variables are ok, but casting them may turn
them into non-constant-expressions.
47: "double type-specifier" (Warning, ANSI-violation)
48: "illegal type-specifier" (Warning, ANSI-violation)
49: "multiple storage-classes" (Warning, ANSI-violation)
50: "storage-class specifier should be first" (Warning, ANSI-violation)
51: "bitfields must be ints" (Warning, ANSI-violation)
52: "bitfield width must be constant integer" (Warning, ANSI-violation)
53: "struct/union member needs identifier" (Warning, ANSI-violation)
54: "; expected" (Warning, ANSI-violation)
Probably you forgot a ';' or there is a syntactic error in an